﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaQuery extends IMessageBase
    {
        public var objKey:SArenaOrderObjKey;
        public var onlyOutLine:Boolean;
        public var startIndex:int;
        public var num:int;
        public const _type:int = 7007;
        public static var _regist:SArenaQuery = new SArenaQuery(true);

        public function SArenaQuery(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaQuery();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.objKey.__write(param1);
            param1.writeBool(this.onlyOutLine);
            param1.writeInt(this.startIndex);
            param1.writeInt(this.num);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.objKey = new SArenaOrderObjKey();
            this.objKey.__read(param1);
            this.onlyOutLine = param1.readBool();
            this.startIndex = param1.readInt();
            this.num = param1.readInt();
            return;
        }// end function

    }
}
